import { View, Text } from "@tarojs/components";
import "./main.scss";
import { useSelector } from "react-redux";

function Main() {
  const { list: data } = useSelector((state: any) => {
    console.log(state.list);
    return state.list;
  });
  return (
    <View>
      <Text>详情页</Text>
      {data.map((item: any) => (
        <Text key={item.id}>{item.text}</Text>
      ))}
    </View>
  );
}

export default Main;
